package com.gjs.cd.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gjs.cd.pojo.dto.CdCodeValidTermReq;
import com.gjs.cd.pojo.entity.CdCodeValidTerm;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author zhongwenguang
 * @date 2022-3-10 17:42
 */
public interface ICdCodeValidTermService extends IService<CdCodeValidTerm> {

    //更新
    Boolean updateTerm(CdCodeValidTermReq cdCodeValidTermReq);

    //新增
    Boolean addTerm(CdCodeValidTermReq cdCodeValidTermReq);

    //获取年份
    List<CdCodeValidTerm> getListYear();

    Wrapper<CdCodeValidTerm> buildWrapper(CdCodeValidTermReq req);
}
